home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: April 12 1996
- // Author: sspence
- //
- // Description:
- // These procs sets the state of controls in the property sheet.
- // See also wireProperties.mel which constructs the property
- // sheet.
- //
- // Input Arguments:
- // $toolName - this is the name of the instance of the tool
- // that the property sheet is modifying.
- //
- // Return Value:
- // None.
- //
-
- global proc wireValues ( string $toolName ) {
- //
- // Description:
- // Sets the state of the property sheet based on the values
- // in the tool context.
- //
-
- // set my top layout to be the current parent
- //
- string $parent = (`toolPropertyWindow -q -location` + "|wire");
- setParent $parent;
-
- // set property sheet label and icon
- //
- string $icon= "wire.xpm";
- string $helpTag= "WireTool";
-
- toolPropertySetCommon $toolName $icon $helpTag;
-
-
- // Set wire attribute values
- //
- checkBoxGrp -e -v1 `wireContext -q -ho $toolName` holderBox;
- floatSliderGrp -e -v `wireContext -q -en $toolName` envelopeSlider;
- floatSliderGrp -e -v `wireContext -q -ce $toolName` conSlider;
- floatSliderGrp -e -v `wireContext -q -li $toolName` locSlider;
- floatSliderGrp -e -v `wireContext -q -dds $toolName` ddSlider;
- checkBoxGrp -e -v1 `wireContext -q -gw $toolName` groupWireBox;
-
- string $positioning=`wireContext -q -do $toolName`;
- if ($positioning == "Default") {
- optionMenuGrp -edit -select 1 wirePositioningWidget;
- }
- else if ($positioning == "Before") {
- optionMenuGrp -edit -select 2 wirePositioningWidget;
- }
- else if ($positioning == "After") {
- optionMenuGrp -edit -select 3 wirePositioningWidget;
- }
- else if ($positioning == "Split") {
- optionMenuGrp -edit -select 4 wirePositioningWidget;
- }
- else if ($positioning == "Parallel") {
- optionMenuGrp -edit -select 5 wirePositioningWidget;
- }
- else {
- optionMenuGrp -edit -select 1 wirePositioningWidget;
- }
-
-
- int $excl=`wireContext -q -exc $toolName`;
-
- checkBoxGrp -e -v1 $excl exclWidget;
- textFieldGrp -e -tx `wireContext -q -ep $toolName` -enable $excl
- partitionNameWidget;
-
- optionMenuGrp -e -enable $excl
- partitionListWidget;
-
- toolPropertySelect wire;
- }
-